Real-Time Procedure to Detect Losses in Photovoltaic Generators Using the Instantaneous and the Translated Performance Ratio