Ab initio studies of the properties of intracellular thiols ergothioneine and ovothiol.