Coke formation on catalysts during the hydroprocessing of heavy oils