Self-consistent alloy treatment of the periodic anderson model: Susceptibility and specific heat of intermediate valence compounds