Theoretical description of the Fano effect in the angle-integrated valence-band photoemission of paramagnetic solids