First-principles investigation of the electronic properties of niobium and molybdenum mononitride surfaces