A convenient synthesis of indazoles