get_tracer_mass_profile : extend to 2D tracers

This function is available only for 3D tracers. It would be nice to extend/create a new one for 2D tracers.