UPS design with active series-parallel power-line conditioning