A cellular automaton for the factor of safety field in landslides modeling