Spin states investigation of delafossite oxides by means of X-ray absorption and photoemission spectroscopy