Optimizing the molecular structure and packing style of a crystal by intramolecular cyclization from picrylhydrazone to indazole