Phenol(s) and thiophenol(s) esterification