Modeling the PV generator behavior submit to the open-circuit and the short-circuit faults