Optimization-based three-dimensional strut-and-tie model generation for reinforced concrete