Mineralogy, porosity and fluid control on thermal conductivity of sedimentary rocks