What role does finite element analysis (FEA) play in predicting the stress and deformation of mechanical components under various loading conditions, and how do improvements in software algorithms enhance the precision and speed of these simulations?