Identification of packet exchange patterns based on energy detection: The Bluetooth case