Photoexcitation-induced magnetism in arrays of semiconductor nanoparticles with a strong excitonic oscillator strength