Two large earthquakes have struck off the coast of Vanuatu, triggering a tsunami warning.