Contamination on sandflats and the decoupling of linked ecological functions