why is i2 a solid while cl2 is a gas even though they are both halogens?