Structural Effects on the Transport of Water in Polyimides