PARAMETRIC GAP SOLITONS AND CHAOS VIA SECOND-HARMONIC GENERATION IN BRAGG GRATINGS