Insulating and conducting heat energy using STEM