solitary waves and patterns in type II second-harmonic generation