Nonlinear propagation of electromagnetic waves in magnetized electron-positron plasmas