Security and Energy Efficiency Enhancement for the Internet of Things: Challenges, Architecture and Future Research