The temperature dependence of the crystal structures of the solid halogens, bromine and chlorine