Neighbor discovery in wireless networks: A multiuser-detection approach