Surface chemistry of polyimide precursors on Cu(111)