Diffraction of Electromagnetic Waves by Nanoobjects With Internal Structure