Natural Environmental Gradients Alter Community Composition and Ecosystem Functioning on Coral Reefs