Electrochemically driven luminescence in organometallic and inorganic systems