Software package to calculate the effects of the core hole and surface excitations on XPS and AES