As electronic devices become smaller and more powerful, keeping them from overheating is an increasingly difficult engineering challenge.