Topology optimization of multi-purpose structures