why do steam trains have diesels on the back