Charge trapping and electroluminescence at quantum dots embedded in a polymer matrix