On the Performance of IEEE 802.15.6 CSMA/CA With Priority for Query-Based Traffic