A matrix model based on the optical cross section theorem for analyzing the scattering of nanoparticles