Statistical mechanics approach to lock-key supramolecular chemistry interactions.