Design of reinforced concrete structures from three-dimensional stress fields