3M posts strong second quarter