Density functional theory approach to thiols and disulfides on gold: Au(111) surface and clusters