Optimization of Magnesium‐Doped Lithium Metal Anode for High Performance Lithium Metal Batteries through Modeling and Experiment