Evolutionary and functional impact of common polymorphic inversions in the human genome