Spanish economist Pablo Hernández de Cos has been named as the next president of the European Central Bank, replacing Christine Lagarde from February 2027.