Fault tolerant photovoltaic array: a repair circuit based on memristor sensing