Electron spectroscopy of graphite, graphite oxide and amorphous carbon