align function

Align spectra to a reference frequency using a convolution based method.