thermodynamic derivation of radiation law