2D non-prismatic beam model for stiffness matrix evaluation