Reaction of ammonia gas with crystalline benzoic and related acids