P and N compensation in diamond molecular orbital theory