Flexibility of DNA and RNA upon binding to different metal cations. An investigation of the B to A to Z conformational transition by Fourier transform infrared spectroscopy.