Despite falling birth rates and shrinking armies, East Asian powers are boosting military spending, driven by threat perceptions and technological advances.