What were the economies of the European empires built on?