The 23Na(p, γ)24Mg reaction and the giant dipole resonance in 24Mg