Scaling of X-ray flux from high-intensity laser-solid interactions as a function of energy