Non-rigid groupwise image registration for motion compensation in quantitative MRI