Characterization and selection of optimal parameters to achieve the best tribological performance of the electrodeposited Cr nanocomposite coating