Preparation of CoAg electrodeposited films