A Review of Intelligent Smart Microgrids for Power Quality and Minimization of Power Loss