How do you determine the electron configuration for atoms?