Modelling of dynamic contact length in rail grinding process