Deposition and characterization of ternary nitrides