Object-oriented modelling of a flexible beam including geometric nonlinearities