A Discrete-event-based Simulator for Distributed Deep Learning