New semi-analytical solution for a moving mass problem: the effect of initial conditions and abrupt change in foundation stiffness