Assigning peaks to resonances and spin systems