Text this: Cooperation and competition shape ecological resistance during periodic spatial disturbance of engineered bacteria