Electrical properties of magnesium-intercalated InSe