An early warning system for earthquakes, tsunamis and floods is being trialled in the US state of California.