Electron Bernstein wave excitation by counterpropagating electromagnetic waves in a plasma