Optimizing mechanical and tribological properties of electrodeposited NiCo alloy coatings by tailoring hierarchical nanostructures