Odd-even effects on the structure, stability, and phase transition of alkanethiol self-assembled monolayers.