Thermodynamics of Light Extraction from Luminescent Materials