Single active-layer structured dual-function devices using hybrid polymer–quantum dots