Optimum beam design based on fatigue crack propagation