SMS dit: Theoretical analysis and implementation of photovoltaic fault diagnosis