Method for building databases of electro-optical parameters for calculating the spectral properties of nano-objects