Layout optimization of large-scale trusses and frames