Photonic generation of triangular pulses based on nonlinear polarization rotation in a highly nonlinear fiber.