Formation of NOx and SOx precursors during the pyrolysis of coal and biomass. Part I. Effects of reactor configuration on the determined yields of HCN and NH3 during pyrolysis