Add optimize_fft and sampling_rate in lindetector.py and osc detectection gui