Dendrite-free Lithium Based on Lessons Learned from Lithium and Magnesium Electrodeposition Morphology Simulations