Relaxation functions and time-reversal invariance in thermal and electric conduction