SMS dit: Automation of intercept method for grain size measurement: A topological skeleton approach