Thermal conductivity of electrons and muons in neutron star cores