Generating Synthetic Datasets by Interpolating along Generalized Geodesics