The morphology and electronic structure of ordered polyimide monolayers