Regression Algorithm for the Smart Prognosis of a Reversed Polarity Fault in a Photovoltaic Generator