Topology and Geometry Optimization of Trusses and Frames