What led to the growth of factories in England in the eighteenth century?