Formation of Magnesium Dendrites during Electrodeposition