Optimization Of Specimen Geometries For Mechanical Testing