Determination of shallow core level spectra in selected compound semiconductors