A quantum chemistry approach based on the analogy with π-system in polymers for a rapid estimation of the resonance wavelength of nanoparticle systems