Unified nonlinear analysis for nonhomogeneous anisotropic beams withclosed cross sections