Effect of direct- and alternating-current electric fields on friction between ice and metals