Amorphous silicon phototransistors