what is the purpose of grinding machine for railways