F1 driver Carlos Sainz extends contract with Ferrari