Thermodynamics of gas adsorption on fractal surfaces of heterogeneous microporous solids