using diffusion into or out of a solid from or into a gaseous phase