Performance of Multifunctional Smart PV-Based Domestic Distributed Generator in Dual-Mode Operation