Thermal relaxation in young neutron stars