In what ways does the theoretical framework of fluid mechanics contribute to the analysis and design of hydraulic systems, focusing on principles such as Bernoulli's equation, laminar and turbulent flow, and the application of conservation laws?