A capacity approach to territorial resilience: the case of European regions