faster integration over frequencies