Optimizing performance and energy efficiency of group communication and internet of things in cognitive radio networks