Masses of neutron stars in X-ray binary systems