A Hierarchical Approach to the Measurement of Changes in Community Structure Induced by Environmental Stress