Pretilt angle generation by UV exposure during imidization of polyimide