A series of tremors was detected across the Spanish islands within hours of each other.