A pair of strong earthquakes has struck off the southern coast of Cuba, inflicting damage and causing landslides.