Structure and stability of salts of halogen oxyacids in the solid phase