A crystal-chemical study of Mg,Al and Ni,Al hydroxy-perchlorates and hydroxy-carbonates