Elastic and electronic properties of oxygen and carbon incorporated into Zr3N4 and Hf3 N4