Machine learning approaches to model cardiac shape in large-scale imaging studies