how to calculate molar concentration of ions