Component-specific petrographic and geochemical characterization of fine-grained carbonates along Carboniferous and Jurassic platform-to-basin transects