Functional and evolutionary impact of polymorphic inversions in the human genome