A beam finite element for magneto-electro-elastic multilayered composite structures