Optically Induced Static Magnetization in Metal Halide Perovskite for Spin‐Related Optoelectronics