Transition metal catalysis in lithium-ion batteries studied by operando magnetometry