Effect of processing parameters and polymerization behavior on the nonlinear optical response of sol-gel materials