Sources and mechanisms of formation of gaseous hydrocarbons in sedimentary rocks