The correction of magnetic and pure quadrupole resonance line shapes for instrumental broadening