integration of powers of trigonometric functions