Fault-tolerant control of a smart PV-grid hybrid system