Thermal and electronic transport in the intermediate-valent compound CeRhIn