Asymptotic analysis of layered elastic beams