Coexistence of different electronic phases in the K0.8Fe1.6Se2 superconductor: a bulk-sensitive hard x-rays spectroscopy study