Phase transitions in superionic protonic conductors CsHSO4 and CsHSeO4