Phototransistor with nanocrystalline Si/amorphous Si bilayer channel