Formation, preservation and connectivity control of organic pores in shale