Hydrogen in magnesium alloys and magnesium interfaces: preparation, electronic properties and interdiffusion