Effect of Impurities on Liquid Crystal Molecular Orientation on Inorganic Surfaces