Approximate solutions of stochastic differential delay equations with Markovian switching