Interaction of Ca2+ and Na+ ions with polygalacturonate chains: a molecular dynamics study