3M agrees to $6 billion settlement in US military earplug lawsuit