Failure or flexibility? Apprenticeship training in premodern Europe