Theory and Practice of Metal Electrodeposition