Impact-induced compositional variations on Mercury