Numerically stable Hermitian secular equation for the envelope-function approximation for superlattices.