Grid-connected photovoltaic system