Design and circuit implementation of approximate switched MPC