Photoemission and x-ray absorption studies of the isostructural to Fe-based superconductors diluted magnetic semiconductor Ba 1 -x K x (Zn 1 -y Mn y ) 2 As 2