3D-STAF: scalable temperature and leakage aware floorplanning for three-dimensional integrated circuits