In Situ Second Harmonic Generation in Disperse Red 1-Doped Polymer and Sol-Gel Films