Why do elements in the same family generally have similar properties?