Automatic finite element formulation and assembly of hyperelastic higher order structural models