Ab initio and density functional theory studies of the catalytic mechanism for ester hydrolysis in serine hydrolases