Proactive and Reactive Thermal Aware Optimization Techniques to Minimize the Environmental Impact of Data Centers