Quantitative Evaluation of the Hierarchical Porosity in Polyimide Aerogels and Corresponding Solvated Gels