which is a way that the elements are groupef on the periodic table