Three-dimensional stress analysis for beam-like structures using Serendipity Lagrange shape functions