Measurement of diffusion and thermal conductivity "constants" in non-homogeneous media, and in media where these "constants" depend respectively on concentration or temperature