An approach to modelling the relationship between plant species and site conditions in terrestrial ecosystems