Partial density of occupied valence states by x-ray standing waves and high-resolution photoelectron spectroscopy