Method of and system for measuring concentration of metal ions in aqueous solutions