Control Strategy for a Multilevel Inverter in Grid-Connected Photovoltaic Applications