Principles of making batteries from metal materials