Design and control of a high gain switched-capacitor multilevel inverter for a transformerless grid-connected photovoltaic systems