Model-based optimization of tendon layouts for soft robots