Second-harmonic generation in hydrogenated amorphous-Si1−xNx doubly resonant microcavities with periodic dielectric mirrors