How are the relationships of elements in a group different from the relationships of elements in a period?