getSNR function

Extract SNR used for peak detection