Stav dette: Theoretical analysis and implementation of photovoltaic fault diagnosis