Excitation of electron Bernstein waves by a gyrating relativistic electron beam in a plasma slab