Effective pair potentials for liquid Na and liquid K