The Gibbs phenomenon in option pricing methods: Filtering and other techniques applied to the COS method