how did spain gain great wealth