China's carbon emissions are set to decline years earlier than expected thanks to the country's rapid expansion in renewable energy.