Ab initio modelling of band states in doped diamond