Large waves kill three people and close ports in Ecuador, Chile and Peru