Power generation maximization of distributed photovoltaic systems using dynamic topology reconfiguration