3M to spend $860 million on ceramics firm Ceradyne