Metal ion effects in the hydrolysis of esters and anhydrides