On the feasibility of making intelligent antenna selection decision in IEEE 802.15.4 wireless sensor networks