An efficient pricing algorithm for swing options based on Fourier cosine expansions