Ultrastable laser interferometry for earthquake detection with terrestrial and submarine cables