factors affecting train speed