Intramolecular hydrogen bonding involving hydroxyl groups in mono- and dianions of diprotic acids in acetonitrile and dimethyl sulfoxide