what role did railroads play in the industrial revolution