Particle in box: A cell for in-situ measurements of porosity and effective diffusion coefficient during thermophysical transformations