3M agrees to pay $6 bln to settle lawsuits over US military earplugs