Solid state 13C and 1H NMR studies of the evolution of the chemical structure of coal char and tar during devolatilization