Minimum-distance receding-horizon state estimation for switching discrete-time linear systems