EMISSION, TOTAL INTERNAL REFLECTION, AND TUNNELING OF THERMAL RADIATION IN SOLIDS