From nonlocality quantifiers for behaviors to nonlocality quantifiers for states