Determination of pore size and shape distribution from porosimetric hysteresis curves