Inferring archaic introgression from hominin genetic data