Modeling the PV Generator Behavior Submit to the Open-Circuit and the Short-Circuit Faults