Donor and acceptor states in diamond