Preparation of hydrocarbons from one or more compounds, none of them being a hydrocarbon starting from compounds containing hetero-atoms other than or in addition to oxygen or halogen