Andrés-Gallego, José, Instituto de Historia. Consejo Superior de Investigaciones Científicas, España