Structure and performance of a real-time algorithm to detect tsunami or tsunami-like alert conditions based on sea-level records analysis