Anomaly detection and predictive maintenance for photovoltaic systems