Integrative analysis of the functional consequences of inversions in the human genome