Influence of doping on the structural and optoelectronic properties of amorphous and microcrystalline silicon carbide