Optimal Thermal Management in Electronic Systems Design