Diagenesis of shale and its control on pore structure, a case study from typical marine, transitional and continental shales