Modelling moving one-dimensional waveguides using waves and finite element analysis