Trait-based modelling in ecology: lessons from two decades of research