why do elements in the same group have similar properties