Sand grain analysis—image processing, textural algorithms and neural nets