Synthesis and characterization of a photosensitive polyimide precursor and its photocuring behavior for lithography applications