Treatment plan optimization incorporating respiratory motion