Temperature Rise in a Two-Layer Structure Induced by a Rotating or Dithering Laser Beam