Resonance-type thickness dependence of optical second-harmonic generation in thin films of the topological insulator B i 2 S e 3