Two‐Dimensional Metal Halide Perovskites: Theory, Synthesis, and Optoelectronics