Takeover quality: assessing the effects of time budget and traffic density with the help of a trajectory-planning method