Quantifying the fabric of granular materials an image analysis approach