Synthesis of bromodifluoromethyl substituted pyrazoles and isoxazoles