Dimer structure of the Si(001)2 × 1 and c(4 × 2) reconstructions derived from core-level and valence-band photoemission results