Electron-energy-loss spectroscopy (EELS) is used to investigate single layers of LaAlO3 grown on SrTiO3 having an n-type interface as well as multilayers of LaAlO3 and SrTiO3 in which both n- and p-type interfaces occur. Only minor changes in Ti valence at the n-type interface are observed. This finding seems to contradict earlier experiments for other SrTiO3/LaAlO3 systems where large deviations in Ti valency were assumed to be responsible for the conductivity of these interfaces. Ab initio calculations have been carried out in order to interpret our EELS results. Using the concept of Bader charges, it is demonstrated that the so-called polar discontinuity is mainly resolved by lattice distortions and to a far lesser extent by changes in valency for both single layer and multilayer geometries.