why do elements in a group have similar chemical properies?