Understanding Ring Puckering in Small Molecules and Cyclic Peptides