Thermal decomposition reactions of solids controlled by diffusion and phase-boundary processes: possible misinterpretation of the mechanism from thermogravimetric data