Morphological discrimination of granular materials by measurement of pixel intensity distribution (PID)