Design and Synthesis of Flexible and Functional Polybenzoxazine Thin Films