Twist grain boundary liquid-crystalline phases under the effect of the magnetic field: a complete 2H and 13C NMR study