Physical heterogeneity and the organization of marine communities