Ewald sum corrections in simulations of ion and dipole solvation and electron transfer.