Design and implementation of a new inverter topology with reduced THD and part count