Studies on hydrogen co-deposition during electrodeposition of metals with particular reference to chromium