Chemomechanics control of tearing paths in graphene