Text this: Design and simulation of an online uninterruptible power supply