Inner valence contributions and phase-matching effects in high-harmonic spectroscopy