Evolution of nanoporosity in organic-rich shales during thermal maturation