Organic matter in rock–water systems of petroliferous basins: interrelationships (a case study: South Caspian Basin)