Using the Rayleigh-Taylor instability for in situ measurements of thermal conductivity of warm dense matter