Chinese, US militaries hold talks to ‘avoid miscalculation’