Dissipativity-Based Two-Dimensional Control and Filtering for a Class of Switched Systems