The role of intraspecific trait variation in shaping the resilience of natural populations and communities