Computer image analysis in the assessment of grain size composition of granular materials