Structural and optoelectronic properties of a-SiC:H and a-SiN:H films for applications as wide-band gap semiconductors