Band-edge and cavity second-harmonic conversion in doubly-resonant microcavity