Tunable electroluminescence and photoluminescence in phenylenevinylene-naphthylenevinylene copolymers