Application of thin films of conjugated polymers in electrochemical and conventional light-emitting devices and in related photovoltaic devices