A Doubly Resonant Photonic-Crystal Microcavity for Second-Harmonic Generation