Resilience dynamics and productivity‐driven shifts in the marine communities of the Western Mediterranean Sea