Correlation of the tokamak H-mode density limit with ballooning stability at the separatrix. (15th January 2018)