Discrete-time switching MPC with applications to mitigate resistance in viral infections