Exploring the magnitude–frequency distribution: a cellular automata model for landslides