Improved calculations of Kapitza resistance: Combined effects of phonon attenuation and impedance matching on Kapitza resistance