A framework for optimal kernel-based manifold embedding of medical image data