Influence of Residual Stresses on Corrosion and Wear Behavior of Electrodeposited Nanocrystalline Cobalt-Phosphorus Coatings