China defends military rise, says faces threats