Deriving effective electrode–ion interactions from free-energy profiles at electrochemical interfaces | Synapse