Electronic structure and ultraviolet absorption spectrum of polyimide