Manipulation of terahertz pulse generation in ZnTe crystal by shaping femtosecond laser pulses with a square phase modulation