Domain-by-Domain Algorithm for Nonlinear Finite-Element Analysis of Structures