Analysis of double-gate MOS structures by solving Poisson and Schroedinger equations with open boundaries