Describe the theoretical framework of finite element analysis in the context of structural engineering. How does it facilitate the analysis of complex structures under varying loading conditions?