What was the major advantage of the steam engine over waterpower?