Dynamic thermal management of data centers