Mitigating Motion Sickness with Optimization-Based Motion Planning