On the importance of doubly charged ions in the auroral ionosphere