Reigning Formula E champion Stoffel Vandoorne will join Aston Martin in 2023 as test and reserve driver.