Wilson loops and black holes in 2+1 dimensions