The influence of legacy effects and recovery from perturbations in a tritrophic salt marsh complex