What is the primary purpose of using media queries in responsive web design?