integration of powers of sines and cosines