A PV plant simulator for testing MPPT techniques