Coresets for Data-efficient Training of Machine Learning Models