Second-harmonic generation in hydrogenated amorphous Si(1-x)N(x) doubly resonant microcavities with periodic dielectric mirrors