Second harmonic generation and enhancement in microfibers and loop resonators