Optimization of optoelectronic properties of a-SiC:H films