Path-Constrained State Estimation for Rail Vehicles