Fault analysis in solar photovoltaic arrays