A finite element approach to statical and dynamical analysis of geometrically nonlinear structures