Use of amorphous silicon for active photonic devices