Cohesive energies of NH4Cl and NH4Br