Linear relationships between acidity and stability in mono- and hexahydrated metal ions: a computational study