Fast approximations of spectral lineshapes to enable optimization of a filtered Rayleigh scattering experiment