Epitaxial growth of NbN on an ultrathin MgO/semiconductor system