Optimizing parameters of a motion detection system by means of a distributed genetic algorithm