Following the footprints of polymorphic inversions on SNP data : from detection to association tests