Fault Detection and Classification in Photovoltaic Arrays using Machine Learning