Energy Optimization for Large-Scale 3D Manycores in the Dark-Silicon Era