Asymptotic and numerical analyses of the mean curvature flow with a space-dependent relaxation parameter