expansion of exponentials of trigonometric functions in the basis of their harmonics