Vapor deposition and curing of polybenzoxazole precursors