A study of levels of 27Mg by the 27Mg(d, pγ)27Mg reaction