Stefan Vandoorne has followed Fernando Alonso in leaving McLaren for next season.