Analysis of finite periodic waveguides for elastic waves using finite-element method