Role of the mineral matrix during kerogen pyrolysis