Acid and base-catalyzed hydrolysis of amides