Electron emission characterization of Mg photocathode grown by pulsed laser deposition within an S-band rf gun