A novel scan pattern for reconfiguration of partially shaded photovoltaic arrays for maximum power extraction