Nuclear in-medium effects on the thermal conductivity and viscosity of neutron star matter