why did the spaniards colonize the philippines?