Dipolar interaction assisted effects on second harmonic generation