A multilevel inverter using switched capacitors with reduced components