Optimization of Radiation Therapy in Time-Dependent Anatomy