Temperature discontinuities between elements of thermoacoustic devices