The effect of electric and magnetic fields on the operation of a photovoltaic cell