Relationships between biodiversity and carbon dynamics in tropical forests