Static analysis of thin-walled beams accounting for nonlinearities