Linked economies: Buddhist monasteries and cities