Tokamak heating by relativistic electron beams