Nano-sandwiching improves heat transfer, prevents overheating in nanoelectronics