Environmental context determines pollution impacts on ecosystem functioning