Control Of Solar Photovoltaic (Phv) Power Generation In Grid-Connected And Islanded Microgrids