Multi-modal non-rigid registration of medical images based on mutual information maximization