Algorithm-aided structural-optimization strategies for the design of variable cross-section beams