Gas sorption and transport in thermally rearranged polybenzoxazole membranes derived from polyhydroxylamides