Functional impact of polymorphic inversions in the human genome