Retrospective motion-adapted smart averaging for free-breathing cardiac MRI