Onset of natural convection in a cube