Amorphous hydrogenated silicon carbide p doped by ion implantation and gas phase