Geographic advantages of the Malacca and Brunei sultanates