A Method for Determination of Porosity Change from Shrinkage Curves of Deformable Materials