Analytical solution and semi-analytical solution for anisotropic functionally graded beam subject to arbitrary loading