what is the principle used in electron configuration?