Synthesis of amides with anti-inflammatory and analgesic activities