N-doped TiO2: Theory and experiment