One-dimensional wave propagation analysis in layered media by BEMs