Text this: Fault detection in a grid-connected photovoltaic system using adaptive thresholding method