Magneto-Mechanical Optimization of Cross-sections for cos-theta Accelerator Magnets