The ‘lungs of the planet’ are in danger of reaching a tipping point that could turn the Amazon rainforest into a savannah