Charge transfer in TTF-TCNQ from core-electron binding energies