Field localization and enhanced Second-Harmonic Generation in silicon-based microcavities