Topology optimization of thermal cloaks in euclidean spaces and manifolds using an extended level set method. (March 2023)