China will ‘take military action’ if Taiwan declares independence