How do aquatic communities respond to contaminants? It depends on the ecological context