who invented the first steam engine used in railroads?