Limitations of the Fowler method in photoelectric work function determination: Oxygen on magnesium single crystal surfaces