Demographic drivers of functional composition dynamics.