Nuclear magnetic resonance in the study of biopolymers and their interaction with ions and small molecules