A one-dimensional model for dynamic analysis of generally layered magneto-electro-elastic beams