Solvothermal synthesis of highly porous polymers and their controllable transition from macro/mesoporosity to meso/microporosity