Identifying loci affecting trait variability and detecting interactions in genome-wide association studies