Electronic structure of Nb2N and NbN thin films