Solid-State Electrochemical Heat Engine