Solid state reactions: an electrochemical approach in molten salts