Secondary ion mass spectroscopy investigations of magnesium and carbon doped gallium nitride films grown by molecular beam epitaxy