Competing interactions in the ammonium halides