Urban growth and economic change: from the late seventeenth century to 1841