Orientations of side chains and adsorbed liquid crystal molecules on a rubbed polyimide surface studied by optical second harmonic generation.