Modelling plant species richness using functional groups