First-principles study of the compensation mechanism for nitrogen acceptors in ZnSe.