Structure and properties of amorphous silicon-metal alloys: I. The Si1-xNix system