Modeling discrete time systems with variable delays as switching systems without delays