Cavity-enhanced second-harmonic generation in strongly scattering nonlinear media