Strain-induced polar discontinuities in two-dimensional materials from combined first-principles and Schrödinger-Poisson simulations