Estimation of effective population size and migration rate from one- and two-locus identity measures