how to know if a chemical is anion or cation?