Effect of surface structure on the contact resistance measurements of electrodeposits