Determination of pore size distribution by gas adsorption