Spain restores Venezuelan, Nicaraguan ambassadors in Madrid