Examining the mechanisms of nucleic acid structural rearrangements using nanospray ionization mass spectrometry