Modeling, Simulation and Hardware Implementation of a PV Power Plant in a Distributed Energy Generation System