Optimization-based non-equidistant toolpath planning for robotic additive manufacturing with non-underfill orientation