Nuclear quadrupole resonance in the interaction representation