Photovoltaic Array Fault Detection by Automatic Reconfiguration