Analysis and design of switched-boost inverter in CCM, DCM and BCM operations