Hard x-ray spectroscopy in NaxCoO2 and superconducting NaxCoO2 - yH2O: A view on the bulk Co electronic properties