First-principles modeling of oligo(ethylene glycol)-terminated and amide group containing alkanethiolates