Stability of the cubic water octamer