How PV cells produce electricity