Relativistic nonlinear plasma waves in a magnetic field