CoCoWa: A Collaborative Contact-Based Watchdog for Detecting Selfish Nodes