The doping of amorphous silicon for solar cells