Power electronics solutions for uninterrupted power supply and grid-tie inverters