Electronic properties of amorphous silicon in solar cell operation