Detecting genetic epistasis by differential departure from independence