Thermal properties and detectability of neutron stars. II. Thermal evolution of rotation-powered neutron stars