Amorphous silicon-germanium diodes for optical detection