VLSI-compatible photonic applications of a-Si:H and related materials