Structural phase stability and van der Waals computation for two-dimensional materials