Metal Ions in Halide Perovskite Materials and Devices Metal Ions in Halide Perovskite Materials and Devices