Corrosion of gold by alkane thiols