Thermal and Energy Prediction for Energy-efficient Data Centers using Machine Learning