A Machine Learning Approach to Robotic Additive Manufacturing of UV-Curable Polymers Using Direct Ink Writing