Quantization of electromagnetic fields in the presence of a spherical semiconductor quantum dot and spontaneous decay of an excited atom doped in this nanostructure