In what ways do theoretical principles of fluid mechanics contribute to the understanding and prediction of complex flow phenomena, encompassing topics such as turbulence modeling, boundary layer theory, and flow stability analysis, across various mechanical engineering disciplines?