The fate of diamondoids in coals and sedimentary rocks