Modify optimal_flip_angle_design to output value of objective function