Optical second-harmonic generation as an orientational probe in poled polymers