Electrocrystallization and electrodeposition of silver on titanium nitride