Calcium and magnesium belong to the group of the periodic table because both?