Large-scale evolutionary analysis of polymorphic inversions in the human genome