Tidal deformability with sharp phase transitions in binary neutron stars