Thermal Conversion of Hydroxy-Containing Imides to Benzoxazoles: Polymer and Model Compound Study