Resilience and smartness of coastal regions. A tool for spatial evaluation