A Review on Internet of Things Solutions for Intelligent Energy Control in Buildings for Smart City Applications