Explain the principles of finite element analysis (FEA) and its role in simulating mechanical behavior under different loading conditions