Text this: Theoretical analysis and implementation of photovoltaic fault diagnosis