Design and operation of a molten salt electrochemical cell