Preparation of high temperature resistance polybenzimidazole resin