Design and implementation of a landslide early warning system