Optimization of internal margin to account for dosimetric effects of respiratory motion.