Correlation between the fractal dimension and the microporous structure of a solid