Assessing the resilience of hermit crabs to extrinsic and intrinsic environmental change