Image analysis to measure sorting and stratification applied to sand-gravel experiments