High quality a-SiC:H films and their application in p-i-n structures for optoelectronic devices