Grid-connected solar photovoltaic microgrid