Initial and final state rules in X-ray spectroscopies of adsorbates