Direct optical patterning of perovskite nanocrystals with ligand cross-linkers