An optimization of the FPGA based wavelet trigger in radio detection of cosmic rays