Tailoring the magnetism of Co atoms on graphene through substrate hybridization.