How to write electron configuration