Light-emitting devices based on pyridine-containing conjugated polymers