Second-harmonic generation in Mie-resonant dielectric nanoparticles made of noncentrosymmetric materials