A maximum power point tracking technique based on bypass diode mechanism for PV arrays under partial shading