A computational approach to measuring identity and its applications in organizations