Nitrogen release in the gasification of carbons