Study of states in 25Al and 26Al by the 24Mg(d, n) and 25Mg(d, n) reactions