Transferable ion force fields in water from simultaneous optimization of ion solvation and ion-ion interaction