In a steam locomotive, electric power is provided through