Investigation and realization of reduced device count single phase multilevel inverter for photovoltaic system