Ab Initio Molecular Dynamics Study of Mg(2+) and Ca(2+) Ions in Liquid Methanol.