A new synthetic entry to 3-carboxamido-4-carboxylic acid derivatives of isoxazole and pyrazole