Operating mechanism of light-emitting electrochemical cells