Uncovering the genomic basis of local adaptation by coherent synthesis of associations with phenotypes and home environments