Modelling And Filtering Almost Periodic Signals By Time-Varying Fourier Series With Application To Near-Infrared Spectroscopy