A procedure for estimating pore volume and area distributions from sorption isotherms