Biodegradation in coals and other organic-rich rocks