Development of a New Methodology for Modeling the PV Generator Behavior in the Presence of Open-Circuit and Short-Circuit Faults