Elastic scattering of low-energy deuterons by24Mg,23Mg,26Mg and27Al