Analysis of Electronic and Structural Properties of Surfaces and Interfaces Based on LaAlO$$ _{3} $$3 and SrTiO$$ _{3}$$3