Design principle of all-inorganic halide perovskite-related nanocrystals