Control of impurities in PPV light-emitting devices