An efficient and accurate strategy of numerical simulation of 2D Rayleigh waves under arbitrary undulating surface conditions