Spain's Carlos Sainz Jr (McLaren) signed up for two seasons with the Ferrari team on Thursday. He will replace Sebastian Vettel from next year.