Green and Intelligent IoT in 6G Era: Machine Learning for Sustainable Smart Cities