A quantitative image analysis method for characterizing mixtures of granular materials