Lifetime Measurements in Mg I-Mg IV