Magnesium doped helium nanodroplets