GEM-Analytics: Cloud-to-Edge AI-Powered Energy Management