Confinement on energy transfer between luminescent centers in nanocrystals