Optimal wireless technologies for the Internet of Things (IoT)