Non-rigid medical image registration with extended free form deformations: modelling general tissue transitions