Growth and applications of epitaxial transition metal nitride thin film heterostructures