Polyimides containing oxygen in the form of ether bonds in the main chain