Coasting advice based on the analytical solutions of the train motion model