Electron transport properties of magnesium thin films