The roles of competition and resource availability in the biomass allocation of plant communities