Masses of very neutron-deficient nuclei in the tin region