A. O. Smith names Stephen Shafer president and COO