How does a photovoltaic system work?

OK