Correlation between photoluminescence intermittency of CdSe quantum dots and self-trapped states in dielectric media