Compound nucleus contributions in the differential and double differential cross sections of deuteron and alpha particle reactions on mg isotopes at intermediate energies