Pulse plated CoP alloy as substitute for hard chromium electrodeposits