How do related variety and differentiated knowledge base s influence the resilience of local production systems?