Describe the relationship between an element's row number in the periodic table and the highest principal quantum number in the element's electron configuration. How does this relationship differ for main-group elements, transition elements, and inner transition elements?