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