Refractive Index Effects on Transient Cooling of a Semitransparent Radiating Layer