integrate e^(-x^2/a^2) cos(2 pi n x/L) from -infinity to infinity