On the mechanism of the thermal decomposition of barium perchlorate