Structural forces in self-assembled monolayers: terphenyl-substituted alkanethiols on noble metal substrates