Analytic expression for the diamagnetic susceptibility of a uniform electron gas