The electrical and optical properties of amorphous thin films of Mg-Bi