An MPPT technique for unshaded/shaded photovoltaic array based on transient evolution of series capacitor