Detecting the genomic signal of polygenic adaptation and the role of epistasis in evolution