Density functional calculation of a potential energy surface for alkane thiols on Au(1 1 1) as function of alkane chain length