Neutron and gamma-ray emission spectroscopy as fast ion diagnostics in fusion plasmas