Effects of organic nitrogen compounds on hydrotreating and hydrocracking reactions