Thermodynamic and NMR structural studies of RNA hairpin loops