How to Write the Electron Configuration for Ions