Heterojunction silicon-carbon films with SiC interlayer