A theoretical study of internal rotation in fragments of aromatic polyimide chains, containing ether and sulphide groups