Text this: A numerical method for elastic wave scattering in multi-layered periodic media based on the scattering matrix and BEM