Heat transport formula in strongly inhomogeneous plasmas