Imaging Mean Energy of X-ray Spectra through Intensity Variation in Radiographs with an Example Application to Beam Hardening Correction