Can one hear the shape of data? -- How spectral geometry helps dispel the curse of dimensionality