Optical properties of dense and porous spheroids consisting of primary silica nanoparticles