Review on photonic method for generating optical triangular pulses