Filtering of Switching Systems via a Minimax Approach