Charge compensation and binding energy referencing in XPS analysis