Simulation and cross-section design of steel beams under moment gradients