From the standpoint of atomic structure, what determines which element will be first and which the last in a period of the periodic table ?