A facile synthesis of 3-aryl-4-pyrazoleacetic acids and of their 4,5-dihydro derivatives