Role of molecular ions in plasmas of atmospheric and energetic interest