Spectral properties of a one-dimensional photonic crystal with a resonant defect nanocomposite layer