Quantitative theory for the quantum interference effect in the transverse magnetoresistance of pure magnesium