Lewis acid-promoted synthesis of pyrazole building blocks.