ElasticFlow: An Elastic Serverless Training Platform for Distributed Deep Learning