Revert "less code in sigproc::raw_signal_profile()"

This reverts commit de5fcc50e6301bd4afaf31b93449c81fa21ba157.
unify the three artifact detection algorithms (part 2/3)
Revert "Revert "less code in sigproc::raw_signal_profile()""

This reverts commit 88cd7ec32aa4596e96c5472c9cf7ddee1c98d3b2.