Europe and China agree to take action on climate change during a tense summit in Beijing