The influence of impurities and planar defects on the optical infrared properties of silicon carbide films