Quantifying the effective attenuation length in high-energy photoemission experiments