Photonic synthesis of triangular-shaped pulses and its tunability utilizing frequency to time mapping