Modelling and simulation of a PV generator for applications on distributed generation systems