What was the period when machines took the place of hand tools called?