Electrostatic model for the rotational potential in ammonium halides