Mechanism of ion desorption induced by core-electron transitions of condensed molecules and adsorbates studied by electron ion coincidence spectroscopy