Estimation of permeability from image analysis of reservoir sandstones