Third-quarter earnings up at 3M