The highlight of 2024 in the Miró Foundation will be the first exhibition showing the links between the two great 20th-century artists