Finite element theory for curved and twisted beams based on exact solutions for three-dimensional solids Part 2: Anisotropic and advanced beam models