The mass of the neutron star in the low-mass X-ray binary 2A 1822-371