New experimental study of low-energy ( p,γ ) resonances in magnesium isotopes