Intrinsic charm in a matched general-mass scheme