Digital image processing of optical density wave propagation in Dictyostelium discoideum and analysis of the effects of caffeine and ammonia