Solvation and hydrogen bonding in alanine- and glycine-containing dipeptides probed using solution- and solid-state NMR spectroscopy.