BHP warns of job cuts in coal as China cools