Direct mass measurements of the neutron-rich isotopes of fluorine through chlorine