An NMR technique for the analysis of pore structure: Application to mesopores and micropores