Infrared study of the quasi-two-dimensional electron system at the interface between SrTiO
3 and crystalline or amorphous LaAlO
3Using grazing-angle infrared spectroscopy, the Berreman effect is detected in the quasi-two-dimensional electron system (q-2DES) at the SrTiO$_3$/LaAlO$_3$ interface. This effect allows extraction of the q-2DES thickness, charge density, and carrier mobility under crystalline LaAlO$_3$, and charge density under amorphous LaAlO$_3$. The charge density is higher under amorphous LaAlO$_3$, but Hall measurements reveal partial localization of charges at low temperature with a low activation energy (about 190 K in $k_B$ units), describable by a large-polaron model. The extracted q-2DES thicknesses are $4 \pm 1$ nm for crystalline and $7 \pm 2$ nm for amorphous LaAlO$_3$.