Topology optimization of cables, cloaks, and embedded lattices