The discretized Schrödinger equation and simple models for semiconductor quantum wells