Multilayered and FGM structural elements under mechanical and thermal loads. Part I: Comparison of finite elements and analytical models