Allan McNish knows more than most about motorsport's highs and lows as he starts a new role with Audi.