Thermal evolution of massive compact objects with dense quark cores