Lunar and terrestrial planet formation in the Grand Tack scenario