Mg deposition on Ag(1 0 0): temperature evolution of the structural and electronic properties